package com.zb.kc.commonutils;

public enum ResultCode {

    SUUCESS(20000, "操作成功"),
    ERROR(50000, "操作失败。。"),
    CANNOT_DELETE_CHAPTER(50000, "含有小节,无法删除！"),
    VIDEO_ADD_FAIL(50000, "添加课时失败"),
    VIDEO_UPDATE_FAIL(50000, "修改课时失败"),
    CANNOT_DELETE_COURSE(50000, "删除课程失败"),
    SMS_SEND_FAILED(50001, "短信发送失败。。"),
    PHONR_OR_PASSWORD_NULL(50000, "账号或密码不能为空"),
    MOBILE_NOTFOUND(50000, "账号不存在"),
    PASSWORD_ERROR(50000, "密码错误"),
    USER_DISABLED(50000, "用户已被禁用"),
    UNLOGINERR(60001, "请先登录~"),
    PAYING(20008, "支付中。。。。"),
    PAY_ERROR(20008, "支付失败"),
    ;


    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
